Netscaler重置密码的方法

http://blog.51cto.com/caojin/1898401

有时候我们会碰到忘记Netscaler的密码,或接手别人的设备而不知道密码的情况。在这种情况下能看到但进不去,那感觉真是酸爽!如何初始化Netscaler的密码,及时启用手上的设备就很重要了。

用console线连接到Netscaler,按启动按钮后会看到以下内容,按照如下提示操作即可

1.       Attach a console cable to the Serial Console (9600 baud, 8 bits, 1 stop bit, No parity) of the NetScaler appliance.

2.       Restart the NetScaler appliance.

3.       Press any of the following keys, as prompted:

Press Spacebar when the following message is displayed:

Hit [Enter] to boot immediately, or any other key for command prompt Booting [kernel] in 10 seconds

Press Ctrl and C keys simultaneously when the following message is displayed:

Press [Ctrl-C] for command prompt, or any other key to boot immediately.

Booting [kernel] in 2 seconds...

4.       To start the appliance kernel on a single user mode, enter the following command:

boot –s

Note: If boot -s does not work, then try reboot -- -s and appliance will reboot in single user mode.

5.       Press Enter when the following message is displayed:

Enter full pathname of shell or RETURN for /bin/sh:

Note: Notice that the prompt of the appliance changes to \u@\h\$.

6.       Run the following command to check the disk consistency:

\u@\h\$ /sbin/fsck /dev/ad0s1a(此命令一定要先执行,否则不能挂载/flash)

Note: Refer to the Knowledge Center article CTX121853 – Device Names Assigned to Hard Disk in Various Models of the Citrix NetScaler Appliance to verify the device name assigned to the hard disk of the appliance model and replace ad0s1a in the preceding command with the appropriate device name.

7.       Run the following command to display the mounted partitions:

df

8.       Run the following command to mount the flash drive:

\u@\h\$ /sbin/mount /dev/ad0s1a /flash( 一定要把flash挂上,否则看不到ns.conf)

If the preceding command fails to mount the flash drive, then run the following command to create the flash directory and then run the preceding command again to mount the drive:

\u@\h\$ mkdir /flash(如果有/flash可以不执行这步)

9.       Run the following command to change to the nsconfig directory:

\u@\h\$ cd /flash/nsconfig

10.     Run the following set of commands to rewrite the ns.conf file and remove the set of system commands defaulting to the nsroot user:

a. Run the following command to create a new configuration file that does not have commands defaulting to the nsroot user:

\u@\h\$ grep –v “set system user nsroot” ns.conf > new.conf(提取除nsroot用户以外的其他配置到新文件)

b. Run a command similar to the following command to make a backup of the existing configuration file:

\u@\h\$ mv ns.conf old.ns.conf(备份原来的配置)

c. Run the following command to rename the new.conf file to ns.conf:

\u@\h\$ mv new.conf ns.conf(用没有nsroot的配置启动)

11.     Run the following command to restart the appliance:

reboot

12.     Log in to the appliance by using the default nsroot user credentials.

此时nsroot的密码为初始化的密码,直接输入nsroot登陆即可

13.     Run the following command to reset the nsroot user password of your choice:

set system user nsroot <New_Password>重新输入密码

Netscaler重置密码的方法的更多相关文章

  1. Linux忘记root密码后如何在grub界面中以单用户模式进入系统并重置密码的方法

    本文将介绍在Linux系统中忘记root用户密码的情况下,如何在gurb界面进入单用户模式并重置root用户密码.在单用户模式下,用户不需要输入任何密码即可进入系统并可以修改密码.实验步骤如下: 1. ...

  2. linux重置密码的方法和用户切换

    由于好久没有用本地的vmware了,本地虚拟机的密码都忘光了,这个不常遇见的问题碰到了,百度了一下解决了 学习源头:https://www.cnblogs.com/lippor/p/5537931.h ...

  3. Mysql 5.7 忘记root密码或重置密码的详细方法

    在Centos中安装完MySQL数据库以后,不知道密码,这可怎么办,下面给大家说一下怎么重置密码 在Centos中安装完MySQL数据库以后,不知道密码,这可怎么办,下面给大家说一下怎么重置密码 1. ...

  4. mysql忘记密码如何重置密码,以及修改root密码的三种方法

    1.先将MySQL停止. 命令:systemctl  stop mysqld       #停掉MySQL 命令:systemctl status mysqld         #查看状态 2.然后跳 ...

  5. Drupal7重置密码方法

    Drupal版本 7.40 方法1: 根目录index.php添加 require_once 'includes/password.inc'; require_once 'includes/boots ...

  6. MVC5 网站开发之六 管理员 2、添加、删除、重置密码、修改密码、列表浏览

    目录 奔跑吧,代码小哥! MVC5网站开发之一 总体概述 MVC5 网站开发之二 创建项目 MVC5 网站开发之三 数据存储层功能实现 MVC5 网站开发之四 业务逻辑层的架构和基本功能 MVC5 网 ...

  7. linux下mysql忘记root密码解决方法

    如果使用 MySQL 数据库忘记了root账号密码,可以通过调节配置文件,跳过密码的方式登数据库, 在数据库里面修改账号密码,一般默认的账号是 root 1.编辑 MySQL 配置文件 my.cnf ...

  8. mysql忘记root密码拯救方法(flush privileges)

    修改的用户都以root为列.一.拥有原来的myql的root的密码: 方法一:在mysql系统外,使用mysqladmin# mysqladmin -u root -p password " ...

  9. VirtualBox虚拟机下Windows登录密码破解方法(阿里云推荐码:1WFZ0V,立享9折!)

    VirtualBox虚拟机下Windows登录密码破解方法 近两年虚拟机的发展给开发人员带来了极大便利,安装一个新环境,只需从别人那里copy一份虚拟机文件即可,分分钟搞定.我之前一直在Ubuntu下 ...

随机推荐

  1. JavaScript : CORS和Ajax请求

    CORS(Cross-Origin Resource Sharing, 跨源资源共享)是W3C出的一个标准,其思想是使用自定义的HTTP头部让浏览器与服务器进行沟通,从而决定请求或响应是应该成功,还是 ...

  2. STM32(4)——系统时钟和SysTick

    1.STM32的时钟系统 在STM32中,一共有5个时钟源,分别是HSI.HSE.LSI.LSE.PLL HSI是高速内部时钟,RC振荡器,频率为8MHz: HSE是高速外部时钟,可接石英/陶瓷谐振器 ...

  3. ant + jmeter 自动化接口测试环境部署

    1.jdk下载安装 下载地址:http://www.oracle.com/technetwork/java/javase/downloads/index.html 2.jmeter下载 jmeter官 ...

  4. python2.7入门---Number(数字)

        今天咱们来简单分享一下关于python中的一种数据类型和操作方法.费话不多说哈,咱们直接来进行实践加理论.首先,我们要知道,Python Number 数据类型用于存储数.数据类型是不允许改变 ...

  5. python2.7练习小例子(五)

        5):题目:输入三个整数x,y,z,请把这三个数由小到大输出.     程序分析:我们想办法把最小的数放到x上,先将x与y进行比较,如果x>y则将x与y的值进行交换,然后再用x与z进行比 ...

  6. python2.7入门---break语句&continue语句&pass空语句

        这篇文章记录的就是比较好玩的东西了,也是比较重要的.咱们先来看一下break语句.Python break语句,就像在C语言中,打破了最小封闭for或while循环.break语句用来终止循环 ...

  7. x86的控制寄存器CR0,CR1,CR2,CR3

    状态和控制寄存器组除了EFLAGS.EIP ,还有四个32位的控制寄存器,它们是CR0,CR1,CR2和CR3. 这几个寄存器中保存全局性和任务无关的机器状态. CR0中包含了6个预定义标志,0位是保 ...

  8. JQuery中的load()、$.get()和$.post()详解 (转)

    load() 1.载入HTML文档 load()方法是jQuery中最为简单和常用的Ajax方法,能载入远程HTML代码并插入DOM中. 它的结构为: load(url [,data][,callba ...

  9. 高德API+.NET解决租房问题(可能是最可靠房源:上海互助租房)

    作者:李国宝链接:https://zhuanlan.zhihu.com/p/22113421来源:知乎著作权归作者所有.商业转载请联系作者获得授权,非商业转载请注明出处. PS:最近点赞和关注的小伙伴 ...

  10. Virtual Host on Apache(Apache上建立虚拟主机)

    0. Introduction Usually, we want to build two or more websites on a web server, but we have only one ...