Electron Proton
  • Home
  • Linux Command Reference
  • Linux
  • C code
  • programming
  • python
  • debugging
  • HPC
  • MPI
  • Linux tools
  • About
fipvlan command examples

fipvlan command examples

June 18, 2018

fipvlan – Fibre Channel over Ethernet VLAN Discovery Display all discoverable VLANs with FCoE services fipvlan –auto Discover FCoE VLANs on interface eth2, create VLAN devices and start the Open-FCoE initiator fipvlan –create –start eth2 In this example if FCoE services were available on VLAN 101 of network interface eth2, then a VLAN interface eth2.101 …

[Solved] nvidia driver – Fatal server error: no screens found

[Solved] nvidia driver – Fatal server error: no screens found

June 5, 2018

X server (init 5) startup issues after deploying NVIDIA graphics driver You may end up breaking your Linux system’s graphics console (x session start up) after you deploy NVIDIA drivers. If you have a look at your X server log you will notice the following. I had faced the same problem and I was able …

glusterfsd command examples

glusterfsd command examples

June 5, 2018

GlusterFS – Clustered Filesystem. Start a GlusterFS server on localhost with volume name foo glusterfsd -s localhost –volfile-id foo.server.media-disk-1 -p /var/lib/glus‐ terd/vols/foo/run/server-media-disk-1.pid -S /tmp/.socket –brick-name /media/disk-1 -l /var/log/glus‐ terfs/bricks/media-disk-1.log –brick-port 24009 –xlator-option foo-server.listen-port=24009  

iscsiadm command examples

iscsiadm command examples

June 5, 2018

iscsiadm – open-iscsi administration utility Discover targets at a given IP address: iscsiadm –mode discoverydb –type sendtargets –portal 192.168.1.10 –discover Login, must use a node record id found by the discovery: iscsiadm –mode node –targetname iqn.2001-05.com.doe:test –portal 192.168.1.1:3260 –login Logout: iscsiadm –mode node –targetname iqn.2001-05.com.doe:test –portal 192.168.1.1:3260 –logout List node records: iscsiadm –mode node Display …

ledctl command examples

ledctl command examples

June 5, 2018

ledctl – Intel(R) LED control application for a storage enclosures. The following example illustrates how to locate a single block device. #ledctl locate=/dev/sda The following example illustrates how to turn Locate LED off for the same block device. ledctl locate_off=/dev/sda The following example illustrates how to locate disks of a RAID device and how to …

libvirtd command examples

libvirtd command examples

June 5, 2018

libvirtd – libvirtd management daemon To retrieve the version of libvirtd: # libvirtd –version libvirtd (libvirt) 0.8.2   To start libvirtd, instructing it to daemonize and create a PID file: # libvirtd -d # ls -la /var/run/libvirtd.pid -rw-r–r– 1 root root 6 Jul 9 02:40 /var/run/libvirtd.pid  

Linux performance monitoring and fine-tuning

Linux performance monitoring and fine-tuning

May 30, 2018

Understanding performance bottlenecks and fine-tuning them in a Linux system: The first thing you must know in performance fine-tuning or Linux performance monitoring is the contributors. What resources contribute to the performance of applications? If your are looking for system level performance fine-tuning, incase your server / PC is slow, this atricle still will help …

get host name in C

get host name in C

May 25, 2018

A program to get hostname in C Following is an example C program to read the hostname from C. #include<stdio.h> #include<string.h> #include<stdlib.h> #include<sys/socket.h> #include<errno.h> #include<netdb.h> #include<arpa/inet.h> int hostname_to_ip(char * , char *); int main(int argc , char *argv[]) { if(argc <2) { printf(“Please provide a hostname to resolve”); exit(1); } char *hostname = argv[1]; char …

lldptool command examples

lldptool command examples

May 24, 2018

lldptool – manage the LLDP settings and status of lldpad Configure LLDP adminStatus to Receive and Transmit for interface eth2 lldptool -L -i eth2 adminStatus=rxtx lldptool set-lldp -i eth2 adminStatus=rxtx Query the LLDP adminStatus for interface eth3 lldptool -l -i eth3 adminStatus lldptool get-lldp -i eth3 adminStatus Query the LLDP statistics for interface eth3 lldptool …

fuser command examples

fuser command examples

May 20, 2018

fuser – identify processes using files or sockets Also see lsof which can be used to identify open files. fuser -km /home kills all processes accessing the file system /home in any way. if fuser -s /dev/ttyS1; then :; else something; fi invokes something if no other process is using /dev/ttyS1. fuser telnet/tcp shows all …

Posts navigation

Newer Posts
Older Posts
Contact Us | Privacy Policy
© 2021 Electron Proton