Friday, December 10, 2010

vcli examples

vcli examples:

Note: All these examples assume that the server has an ip address of 10.1.1.1

To backup and restore esxi settings:

# vicfg-cfgbackup.pl --server 10.1.1.1 -s C:\esxibackup
 # vicfg-cfgbackup.pl --server 10.1.1.1 -l C:\esxibackup

To modify and view hostname and dns information:

# vicfg-dns.pl --server 10.1.1.1 --hostname wesker
# vicfg-dns.pl --server 10.1.1.1 --domain example.com
# vicfg-dns.pl --server 10.1.1.1 --dhcp yes
# vicfg-dns.pl --server 10.1.1.1 --dhcp no
# vicfg-dns.pl --server 10.1.1.1 --dns 10.1.1.2,10.1.1.3
# vicfg-dns.pl --server 10.1.1.1 --vnic vmnic0
# vicfg-dns.pl --server 10.1.1.1

To modify and view ntp information:

# vicfg-ntp.pl --server 10.1.1.1 -l
# vicfg-ntp.pl --server 10.1.1.1 -a 10.1.1.2
# vicfg.ntp.pl --server 10.1.1.1 -d 10.1.1.2
# vicfg.ntp.pl --server 10.1.1.1 --start
# vicfg.ntp.pl --server 10.1.1.1 --stop

To modify nfs/nas information:

# vicfg-nas.pl  --server 10.1.1.1 --list
# vicfg-nas.pl --server 10.1.1.1 --add nfs1 --nasserver 10.1.1.2  --share /music
# vicfg-nas.pl --server 10.1.1.1 --delete nfs1

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.