npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

generator-citrix-netscaler

v1.3.0

Published

.NET Core sample projects that interacts with the Citrix Netscaler appliance via the Citrix NITRO APIs. This can use the Netscaler CPX docker container.

Downloads

15

Readme

generator-citrix-netscaler NPM version

A Yeoman generator that scaffolds a .NET Core sample project that show how to interact with the Citrix Netscaler CPX docker container via the NITRO REST API. It will also ask if you would to enable Netscaler CPX support and then download, configure and run the netscaler CPX express container.

Required Software

This generator works with the Citrix Netscaler product but the quickest way to get started with Citrix Netscaler is to download the free Netscaler CPX Express docker image from here.

This generator builds a .NET Core application, so you will also need the .NET Core SDK and runtime from Microsoft. You can find the the .NET Core download here for the different platforms.

While not required for these samples, it is always good to have a source code editor.Visual Studio Code is a good one since it knows how to handle .NET core projects but feel free to an editor that makes you happy. Sublime Text or Brackets are also good editors.

Getting started with Netscaler CPX and Docker videos

Installation

First, install Yeoman and generator-citrix-netscaler using npm (we assume you have pre-installed node.js).

sudo npm install -g yo
sudo npm install -g generator-citrix-netscaler

Then generate your new project:

yo citrix-netscaler

This will prompt you for you Netscaler information and generate a starter project that shows how to authenticate to the Citrix Netscaler CPX container

Sub-Generators

There are also several sub generators that will add additional functionality to the sample app based on what NITRO API you would like to interact with.

Features

Generates a partial class that contains the API calls to list features on the Netscaler CPX container.

Example:

yo citrix-netscaler:features

Produces NSListFeatures.cs in the project directory. In order to use the new methods you should add the following method call to your main calling method.

await ListFeatures();

IP

Generates a partial class that contains the API calls to list IP addresses used on the Netscaler CPX container.

Example:

yo citrix-netscaler:ip

Produces NSIP.cs in the project directory. In order to use the new methods you should add the following method call to your main calling method.

await Listips();

HOSTNAME

Generates a partial class that contains the API calls to get and set the hostname of the Netscaler CPX.

CPXSUPPORT

Summary

the CPXSUPPORT sub-generator will enable the Citrix Netscaler CPX Express container in the current project. This will pull the docker container from the docker store and start it up automatically. A requirement for this is to have docker installed on the device where you creating your project.

Example:

yo citrix-netscaler:cpxsupport

$ Would you like to add Netscaler CPX to y (Y/n)
$ Please enter the local HTTP port to map to the http port in the docker container (32777)
$ Please enter the local HTTPS port to map to the https port in the docker container (32778)
$ Please enter the local SSH port to map to the SSH port in the docker container (32779)
$ Please enter the local SNMP port to map to the SNMP port in the docker container (32780)

Example:

yo citrix-netscaler:hostname

Produces NSHostname.cs in the project directory. In order to use the new methods you should add the following method call to your main calling method.

//List hostname
await ListHostname();
//set the hostname
await SetHostname("MyNewHostname");

listvservers

Generates a partial class that contains the API calls to list all of the VServers configured on the the Netscaler CPX.

Example:

yo citrix-netscaler:listvservers

Produces NSListServers.cs in the project directory. In order to use the new methods you should add the following method call to your main calling method.

await ListVirtualServers();

Contribution

We love open source and contributors! Get started by cloning This repo and start building additional features. Whether it source code, documentation, issue or wiki entries. We love any kinda of contribution!

At Citrix, we’re committed to building a world-class ecosystem through open platforms. Our offerings power mission-critical business operations for users, IT and partners, and we provide a number of APIs, SDKs and tools to help you extend and integrate with our services. We’re excited to work with you to make Citrix your platform of choice.