Cyclades AlterPath OnBoard Uživatelská příručka Strana 585

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 688
  • Tabulka s obsahem
  • ŘEŠENÍ PROBLÉMŮ
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 584
Miscellaneous Procedures 537
Using the CLI Utility
Any type of shell can be used to run CLI commands along with other
commands.
For a very simple example, you could create a script that calls /bin/CLI to
run in batch mode to configure a hostname for the OnSite as shown in the
following screen example.
To run a CLI command from the same script that is running other Linux
commands, you could put the command in another type of shell script. The
bash shell is shown in the following example:.
To run multiple CLI commands from a script that is also running other Linux
commands, you could add the multiple CLI commands as shown in the
following example:.
#!/bin/CLI
config network hostsettings hostname FremontCAOnSite
config savetoflash
:wq
#!/bin/bash
...
/bin/CLI -s config network hostsettings hostname
FremontCAOnSite
...
#!/bin/bash
...
/bin/CLI << EOF
config network hostsettings hostname FremontCAOnSite
config security adduser username testuser
config savetoflash
EOF
Zobrazit stránku 584
1 2 ... 580 581 582 583 584 585 586 587 588 589 590 ... 687 688

Komentáře k této Příručce

Žádné komentáře