I am trying to collect and print all the network interface details in linux shell script.
operating system : centos 7
Below is my shell script :
Ouput :
I want to expand this shell script based on the flg variable ouput.
if flg variable ouput is LRU i want to add two more variables(description and status)
if flg variable ouput is BMRU i want to add two more variables(description and status)
Desired output :
if flg variable ouput is LRU
if flg variable ouput is BMRU
Can someone please help.
Moderator's Comments:
Please do wrap your samples, code(s) in CODE TAGS as per forum rules.
Last edited by RavinderSingh13; 11-18-2019 at 12:39 PM..
When I send a request to print to a HP4si networked printer, It prints an extra page with User, Host, Class & job info.
Is it possible to eliminate this page? (2 Replies)
Discussion started by: sbuck331
2 Replies
2. Post Here to Contact Site Administrators and Moderators
I am installing a HP printer using ./hpnpcfg and I am getting the following:
Please enter selection: 5
Enter the network peripheral name or IP address: hpndlife
The following types of test files can be sent to the printer:
1) text file
... (0 Replies)
I am installing a HP printer using ./hpnpcfg and I am getting the following:
Please enter selection: 5
Enter the network peripheral name or IP address: hpndlife
The following types of test files can be sent to the printer:
1) text file
... (0 Replies)
I am installing a HP printer using ./hpnpcfg and I am getting the following:
Please enter selection: 5
Enter the network peripheral name or IP address: hpndlife
The following types of test files can be sent to the printer:
1) text file
... (1 Reply)
which unix cmd will give the following result...
Node Name Task Name ID Status Network
NUTTS CTP_E 1000 In Service X25/OFF TCP/ON
MUSKET CTP_E 2011 Unreachable X25/OFF TCP/OFF
... (0 Replies)
Hello guys,
I'm having a problem at configuring an HP printer for solaris 2.5.1. Unfortunatly solaris did not support network printing until 2.6.x so i had to use jetadmin, wich suprisingly worked well the verry first time i installed the package.
Allthough the sparcstation witch i'm using is... (0 Replies)
Hi,
/sbin/ifconfig -a
when i login as guest user , output like below,
lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
inet 127.0.0.1 netmask ff000000
eri0: flags=1004843<UP,BROADCAST,RUNNING,MULTICAST,DHCP,IPv4> mtu 1500 index 2
inet... (5 Replies)
Hi All,
Can somebody explain that whats the meaning of different interfaces naming scheme, Like ' hme, qfe, e1000g0, ce, eri, bge' ?
This is such a basic question which i always overlooked :(
Thanks ! (6 Replies)
Hi,
Could someone tell me how to stop SQLPLUS command from printing the connection details in the console.
Below is the lines i get in console when executing the sqlplus...
SQL*Plus: Release 10.2.0.1.0 - Production on Wed Mar 9 03:31:03 2011
Copyright (c) 1982, 2005, Oracle. All rights... (2 Replies)
I have network printer registerd in solaris environment. When I issue print, it prints banner page. The issue printer is registerd in Print server which is running on Linux environment. So when I issue print in Print server, it doesn't print banner page as banner settings are made to turn off It... (6 Replies)