config netadmin IP config, SSH hosts active SSH with command

All those commands that we don't really use very often, but that we should ! Documented or not, they worth it !
Post Reply
fdurante

config netadmin IP config, SSH hosts active SSH with command

Post by fdurante »

Is it possible to configure netadmin IP adresses, add SSH hosts names and active SSH with useful commands to include in a script (bash !) to start automatically on OXE ?
Gedeon

Re: config netadmin IP config, SSH hosts active SSH with command

Post by Gedeon »

No, but you can modify the configuration file, with no garantie for upgrade and alcatel support.
For this, if you want only configure OXE with good configuration, the good solution is to restore the config by swinst / restore from cpu disk / linux data
It's safe and supported.

G.
fdurante

Re: config netadmin IP config, SSH hosts active SSH with command

Post by fdurante »

Which config file can you modify ?
I agree with you that the good solution is to restore linux data but is it possible to change manually the config cho-dat to modify parameters to restore ? Linux data includes SSH host names ?
Gedeon

Re: config netadmin IP config, SSH hosts active SSH with command

Post by Gedeon »

Linux data include these files :

Code: Select all

# @(#) --lin_data.blf--1.1--2001/08/30--e-mediate--
/etc/passwd
/etc/shadow
/etc/login.defs
/etc/hosts
/etc/hosts.equiv
/etc/hosts.allow
/etc/hosts.deny
/etc/hostname
/etc/sysconfig/clock
/etc/at.*
/etc/TunParams.mao
/var/spool/cron/*
/usr/netadm/data/netdata
/tmp/hosts.sav
/tmp/netdata.sav
/etc/ntp.conf
/etc/ntp/keys
/etc/pam.d/system-auth
/etc/pam.d/system-auth.NORADIUS
/etc/pam.d/system-auth.RADIUS
/etc/raddb/server
/etc/shut_delay
/etc/psal_delay
# EOF -  lin_data.blf
G.
pilotrus

Re: config netadmin IP config, SSH hosts active SSH with command

Post by pilotrus »

To my mind some linux files are replaced, when TEL application starts (/etc/passwd and /etc/shadows for example). That`s why you cann`t add user with mtcl privileges without additional configuration? using only adduser command.
For automatic generation and configuration we using expect scripts.
fdurante

Re: config netadmin IP config, SSH hosts active SSH with command

Post by fdurante »

Thank you for your response !

About "expect" scripts, you have to install a new expect module ? Linux version on OXE doesn't include this module ?
Can you attach me this "expect" module or give me an address to download it please ? Is it a big size module ? Because, if I will use it, I have to transfer this module on many OXE !
Do you have a procedure to install the "expect" module ?
Do you have an example of "expect" script for automatic generation and configuration ?
Do you confirm that it's not advisable to change Linux data files to customize netadmin IP adresses, add SSH hosts names and active SSH ?

Thank you in advance for your answer ?
pilotrus

Re: config netadmin IP config, SSH hosts active SSH with command

Post by pilotrus »

Yes, OXE does not include expect, but it is not good idea to use expect installed on OXE. IMHO.
We are using it from remote station (terminal station) via IP connection. Also you can use terminal utilities for configuration via serial connection.
I have never use scripts to edit netadmin settings. We always use it for mgr configuration and some other commands, such as dectinson. But you can configure netadmin so easy as mgr.
pilotrus

Re: config netadmin IP config, SSH hosts active SSH with command

Post by pilotrus »

One more.
You can use "autoexpect" to record script as you can do it in Microsoft Excel with macros
Post Reply

Return to “Usefull commands”